//
//  APIHistory.h
//  Bracelet
//
//  Created by betta on 2/16/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "APIConnection.h"

@interface APIOneHistory:NSObject

@property (copy, nonatomic) NSString *histroyEachSunday;
@property (copy, nonatomic) NSString* historyPercent;
@property (copy, nonatomic) NSString* historyRunMetre;

+(instancetype)apiFromHistoryFromDictionay:(NSDictionary*)history;

@end

@interface APIHistory : NSObject

@property (strong, nonatomic)NSMutableArray *arrayHistroyDataList;
//@property (strong, nonatomic)NSArray *arraySundayList;
@property (copy, nonatomic)NSString *html;

+(void)setApiRelativePosition:(NSString*)relativePostion
               getTheHistroy:(void (^)(APIHistory *outRank))successBlock
                      failure:(void (^)( NSError *error)) failureBlock;
@end
